
#ifndef DISPLAY_H
#define DISPLAY_H
#include <d3dx9.h>
#include<stdlib.h>
#include <atlbase.h>

#include "Scene.h"
#include "BufferStructs.h"

class Display
{
	unsigned int				mWidth;
	unsigned int				mHeight;
	HWND						mWindow;
	CComPtr<IDirect3DDevice9>	mDevice;
	CComPtr<IDirect3D9>			mD3D;
public:
	Display(HWND window,IDirect3DDevice9* device = NULL,IDirect3D9* d3d = NULL);
	~Display(){}
	
	void Render();
	
	HRESULT InitD3DRenderState();
	void SetPointSize(float s, float m = 0.001);
	void EnableBlend();
	HRESULT CreateDevice();
	IDirect3DDevice9* GetDevice(){return mDevice;}
	IDirect3D9* GetD3D(){return mD3D;}

	void TestMeshLoad();
};



#endif